// cli_core.h
#ifndef CLI_CORE_H
#define CLI_CORE_H

#include <stddef.h>
#include <stdint.h>

typedef int (*CmdHandler)(int argc, char **argv);

typedef struct {
    const char *name;
    CmdHandler handler;
    const char *help;
} Command;

void registerCommands(const Command *cmdList);
void parseSerialCommand(uint8_t *buffer, size_t length);
int cli_help(int argc, char **argv);

#endif // CLI_CORE_H